Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Inform about Boolean Parameters not for case class initializer #649

Merged
merged 1 commit into from
May 10, 2022

Conversation

saeltz
Copy link
Collaborator

@saeltz saeltz commented May 10, 2022

I made an error in my last PR because I didn't know that for any case class with a Boolean parameter the compiler actually creates a method called <init> in the automatically generated companion object that has the constructor parameters. In that method's parameters there's obviously also the Boolean parameter. We don't want to show an info for case classes, though.

This filters for these methods and adds a negative test as well.

Could we get this merged and released quickly?

@saeltz saeltz marked this pull request as ready for review May 10, 2022 06:23
@saeltz saeltz requested review from mccartney and sksamuel May 10, 2022 06:24
@@ -22,7 +22,7 @@ developers := List(
)
)

scalaVersion := "2.13.7"
scalaVersion := "2.13.8"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's probably not intended, but it doesn't matter much.

@mccartney mccartney merged commit b441e0a into scapegoat-scala:master May 10, 2022
@mccartney
Copy link
Collaborator

mccartney commented May 10, 2022

1.4.14 is on its way

@saeltz saeltz deleted the booleanFix branch May 10, 2022 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants